<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id="box">
        <div v-for="i in num" ref="ref">{{i}}</div>
    </div>
</body>
<script src="../js/vue.js"></script>
<script>
    new Vue({
        el:"#box",
        data:{
            num:10
        },
        created(){
            this.$nextTick(()=>{
                console.log(this.$refs.ref);
            })
        }
    })
</script>
</html>